package com.open.capacity.common.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

@Data
@TableName("daily")
@EqualsAndHashCode(callSuper=true)
public class Daily extends Model<Daily> implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    @JsonSerialize(using= ToStringSerializer.class)
    private Integer id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名", height = 20, width = 30, isImportField = "true_st")
    private String uname;
    @Excel(name = "用户昵称", height = 20, width = 30, isImportField = "true_st")
    private String nickName;

    /**
     * 日报提交时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "日报提交时间", height = 20, width = 30, isImportField = "true_st")
    private String cretim;

    /**
     * 日报修改时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "日报修改时间", height = 20, width = 30, isImportField = "true_st")
    private String updtim;

    /**
     * 日报状态
     */
    @Excel(name = "日报状态", height = 20, width = 30, isImportField = "true_st")
    private Integer state;

    /**
     * 日报内容
     */
    @Excel(name = "日报内容", height = 20, width = 30, isImportField = "true_st")
    private String conten;


}
